﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Himp.Platform.Dc.Migrations
{
    /// <inheritdoc />
    public partial class addtableDrugMedcWay : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "DRUG_MEDC_WAY_DICT",
                schema: "Dc");

            migrationBuilder.CreateTable(
                name: "DRUG_MEDC_WAY",
                schema: "Dc",
                columns: table => new
                {
                    Id = table.Column<Guid>(type: "uuid", nullable: false),
                    DRUG_MEDC_WAY_CODG = table.Column<string>(type: "text", nullable: false),
                    DRUG_MEDC_WAY_NAME = table.Column<string>(type: "text", nullable: false),
                    DRUG_MEDC_WAY_TYPE_CODE = table.Column<string>(type: "text", nullable: false),
                    DRUG_MEDC_WAY_TYPE_NAME = table.Column<string>(type: "text", nullable: false),
                    DATA_DICT_CODE = table.Column<string>(type: "text", nullable: false),
                    DATA_DICT_NAME = table.Column<string>(type: "text", nullable: false),
                    TenantId = table.Column<Guid>(type: "uuid", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_DRUG_MEDC_WAY", x => x.Id);
                });
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "DRUG_MEDC_WAY",
                schema: "Dc");

            migrationBuilder.CreateTable(
                name: "DRUG_MEDC_WAY_DICT",
                schema: "Dc",
                columns: table => new
                {
                    Id = table.Column<Guid>(type: "uuid", nullable: false),
                    DATA_DICT_CODE = table.Column<string>(type: "text", nullable: false),
                    DATA_DICT_NAME = table.Column<string>(type: "text", nullable: false),
                    DRUG_MEDC_WAY_CODG = table.Column<string>(type: "text", nullable: false),
                    DRUG_MEDC_WAY_NAME = table.Column<string>(type: "text", nullable: false),
                    DRUG_MEDC_WAY_TYPE_CODE = table.Column<string>(type: "text", nullable: false),
                    DRUG_MEDC_WAY_TYPE_NAME = table.Column<string>(type: "text", nullable: false),
                    TenantId = table.Column<Guid>(type: "uuid", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_DRUG_MEDC_WAY_DICT", x => x.Id);
                });
        }
    }
}
